import request from '../utils/request';
import {host} from '../constants/Host'

const bannerAll = host + '/wechat/banner!wsSelectAll.action';
const hotClassUrl = host + '/wechat/lesson!hotLessonList.action';

//查询
export function query(val) {
  const body = {val};
  return request('/api/users', {body, method: 'POST'});
}

//取轮播图
export function fetchBanner() {
  const body = {};
  return request(bannerAll, {body, method: 'POST'});
}

//热门课程
export function hotClass(body = {}) {
  return request(hotClassUrl, {body, method: 'POST'});
}
